# -*- coding: utf-8 -*-
"""
@author: wyb
@date: 2024/1/2
@time: 20:22
@desc: csv write test
"""
import csv

with open('data.csv', 'w') as csvFile:
    writer = csv.writer(csvFile, delimiter=';')
    writer.writerow(['id', 'name', 'age'])
    writer.writerow(['1001', 'Mike', 20])
    writer.writerow(['1002', 'Bob', 21])
    writer.writerow(['1003', 'Jordan', 22])
    writer.writerows([['1004', 'wilford', 22], ['1005', 'wb', 40]])
